package com.sugou.dao.support.bean;

import com.sugou.dao.support.Statement;

/**
 * 通用语句体
 * 
 * @version 1.0 
 * @author Hunk.Tong &copy; Ustudy 游学网络
 * <b>Create Time:</b>2013-5-24 下午3:20:36
 */
public class CommonsStatement implements Statement, CharSequence {
	private static final long serialVersionUID = 845639593872876254L;
	private String content;
	
	public CommonsStatement(String content) {
		this.content=content;
	}

	public int length() {
		return this.content.length();
	}

	public char charAt(int index) {
		return this.content.charAt(index);
	}

	public CharSequence subSequence(int start, int end) {
		return this.content.subSequence(start, end);
	}

	public String getContent() {
		return this.content;
	}
	
	public String toString(){
		return this.content;
	}
}
